for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// BufferUnderflowException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const RuntimeException = require(path.join(__dirname, "RuntimeException.js"));
// :: BASIC SETUP
/**
* Unchecked exception thrown when a relative get operation reaches the target buffer's limit.
* @param {String} message - The message describing the <tt>BufferUnderflowException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>BufferUnderflowException</tt>.
* @augments RuntimeException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/nio/BufferUnderflowException.html
*/
const BufferUnderflowException = function (message, code) {
RuntimeException.call(this, null, message, code);
};
// :: INHERITANCE
// set the RuntimeException 'class' as the parent in the prototype chain
BufferUnderflowException.prototype = Object.create(RuntimeException.prototype);
BufferUnderflowException.prototype.constructor = RuntimeException;
// :: PROTOTYPE
* The name used to identify a <tt>BufferUnderflowException</tt>.
* @type {String}
* @default
BufferUnderflowException.prototype.name = "BufferUnderflowException";
// :: EXPORT
// export the BufferUnderflowException 'class'
module.exports = BufferUnderflowException;